//
   Created by wanthering on 2017/8/14.

html
    head
        meta(name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no")
        link(rel="stylesheet" href="/stylesheets/reset.css")
        link(rel="stylesheet" href="/stylesheets/login.css")
        link(rel="stylesheet" href="/stylesheets/custom.css")
        link(rel="stylesheet" href='/stylesheets/lesson.css')
        link(rel="stylesheet" href="/stylesheets/webuploader.css")
        link(rel="stylesheet" href='/stylesheets/datepicker.min.css')
        script(src="/javascripts/jquery.js")
        script(src="/javascripts/webuploader.js")
        title 课后练习题
    body
        .login-wrapper
            .grey-shade
            .login-box
                .login-con
                    .form-group
                        input(type='text' id='username' placeholder='用户名')
                    .form-group
                        input(type='password' id='password' placeholder='密码')
                    .form-group
                        button(type="submit" class="tran pr" id='login')
                            a(href="javascript:;" class="tran") 登录
        #uploader
            h1.head 课后练习题制作
            .thisTopic
                h4 本期课题:
                p=title
            form(method="post" action="/admin/lesson/design" class='form')
                if id
                    input(type="hidden" name="id" value= id)
                input(type="hidden" name="faceUrl" value= faceUrl)
                ul
                    li
                        label.label 交卷时间：
                        .qwrap
                            .dateWrap
                                input(data-toggle='datepicker' name='deadline')
                        label.label 题目1:
                        .qWrap
                            .inputWrap
                                input(type="text" name="q1[question]" value=q1.question)
                            label.label 选项A:
                            .chooseWrap
                                input(type="text" name="q1[a]" value=q1.a)
                            label.label 选项B:
                            .chooseWrap
                                input(type="text" name="q1[b]" value=q1.b)
                            label.label 选项C:
                            .chooseWrap
                                input(type="text" name="q1[c]" value=q1.c)
                            label.label 正确答案:
                            .radioWrap
                                label   A
                                    input(name="q1[right]" type="radio" value="a" checked=q1.right=='a')
                                label   B
                                    input(name="q1[right]" type="radio" value="b" checked=q1.right=='b')
                                label   C
                                    input(name="q1[right]" type="radio" value="c" checked=q1.right=='c')
                        .clearfix
                    li
                        label.label 题目2:
                        .qWrap
                            .inputWrap
                                input(type="text" name="q2[question]" value=q2.question)
                            label.label 选项A:
                            .chooseWrap
                                input(type="text" name="q2[a]" value=q2.a)
                            label.label 选项B:
                            .chooseWrap
                                input(type="text" name="q2[b]" value=q2.b)
                            label.label 选项C:
                            .chooseWrap
                                input(type="text" name="q2[c]" value=q2.c)
                            label.label 正确答案:
                            .radioWrap
                                label   A
                                    input(name="q2[right]" type="radio" value="a" checked=q2.right == 'a')
                                label   B
                                    input(name="q2[right]" type="radio" value="b" checked=q2.right == 'b')
                                label   C
                                    input(name="q2[right]" type="radio" value="c" checked=q2.right == 'c')
                        .clearfix
                    li.ta
                        label.label 课后随笔题:
                        .inputWrap
                            textarea( name="article" rows='3')=article
                        .clearfix
                    li.picContainer
                        .picWrapper
                            #giftList.uploader-list
                            #giftPicker 礼品图片
                            if giftUrl
                                input#giftUrl(type="hidden" name="giftUrl" value=giftUrl)
                            else
                                input#giftUrl(type="hidden" name="giftUrl" value="##invalid##")
                            .clearfix
                        .picWrapper
                            label 礼品名称
                                input(type="text" name="giftName" value=giftName)
                        input(type='hidden' name='_id' value=_id)
                        input(type='hidden' name='title' value=title)
                    li
                        button.submit(type="submit") 提交

    script(src="/javascripts/datepicker.min.js")
    script(src="/javascripts/login.js")
    script(src='/javascripts/lesson.js')